package com.cheng.dao;


import com.cheng.pojo.Users;
import org.apache.ibatis.annotations.Param;

public interface UsersMapper {

    //查询用户
    Users selectUsers(@Param("name")String name,@Param("password")String password);

    //注册用户
    int addUsers(Users users);

    //修改密码
    int updatePassword(Users users);

    //用户付款
    int updateMoney(@Param("name")String name,@Param("money")String money);

    //用户退款
    int addMoney(@Param("name")String name,@Param("total_price")String total_price);

    //查询用户信息
    Users select_information(@Param("name")String name);

    //修改用户信息
    int update_information(@Param("userEmail")String userEmail,@Param("userPassword")String userPassword,@Param("name")String name);

}
